﻿using System;
using System.Collections.Generic;
using Wamm.ApplicationExceptions;
using Wamm.Model.Abstract;

namespace Wamm.Model.Entities {
    public class PersonPhoto : IEntity
    {
        public int Id { get; set; }

        public string SizeType { get; set; }

        public byte[] Picture { get; set; }

        public int Width { get; set; }

        public int Height { get; set; }

        public int PersonId { get; set; }

        public virtual Person Person { get; set; }

        public string AddedBy { get; set; }

        public DateTime Added { get; set; }

        public string LastUpdatedBy { get; set; }

        public DateTime LastUpdated { get; set; }

        public void Validate(IList<RuleViolation> errors) {
            //todo - add call to ValidatePersonPhoto
        }
    }
}
